package com.ay.shardingshere.service;

import com.ay.shardingshere.entity.User;
import com.ay.shardingshere.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.jws.soap.SOAPBinding;
import java.util.List;

/**
 * @Author: ay
 * @Date: 2021/6/24
 * @Description:
 **/
@Service
public class UserService {


    @Autowired
    private UserMapper userMapper;


    public void save(User user){
        userMapper.save(user);
    }


    public List<User> list(){
        return userMapper.list();
    }
}
